#ifndef __DATA_POOL_H__
#define __DATA_POOL_H__


#ifdef __cplusplus
extern "C" {
#endif
#include "stdint.h"

#define DATA_POOL_NUM 20
#define DATA_POOL_SIZE (256)  //每个写入的数据块大小

void dataPool_init();

uint8_t* dataPool_get(uint32_t timeout);

void dataPool_free(uint8_t* p);

#ifdef __cplusplus
}
#endif

#endif /* ! __DATA_POOL_H__ */

